package com.ruoyi;

import com.ruoyi.zhmk.service.CarCallBack;
import com.ruoyi.zhmk.service.FaceCallBack;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 启动程序
 * 
 * @author ruoyi
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication
{
    public static void main(String[] args)
    {
        ApplicationContext applicationContext = SpringApplication.run(RuoYiApplication.class, args);
        CarCallBack.applicationContext = applicationContext;
        FaceCallBack.applicationContext = applicationContext;
        System.out.println("(♥◠‿◠)ﾉﾞ  智能门禁启动成功   ლ(´ڡ`ლ)ﾞ  \n");
    }
}